﻿<html>
<head>
<title>PS Media Library Local Video</title>
 <link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet" />
 <link href="http://www2.videojs.com/css/tube-css/tube.css" rel="stylesheet" />
 <script type="text/javascript" src="http://vjs.zencdn.net/c/video.js"></script>
</head>

<body style="overflow: hidden; margin: 0px;">
<script type="text/javascript">
    function getVideoUrl() {
        var result = {}, queryString = location.search.substring(1),
      re = /([^&=]+)=([^&]*)/g, m;

        while (m = re.exec(queryString)) {
            result[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
        }

        return result['video'];
    };
    videoUrl = getVideoUrl();
</script>
<div>
    <video id="Main" class="video-js tubecss"  
      width="853" height="480"
      data-setup='{"controls": true, "autoplay": true, "preload": "auto"}'>
      <script type="text/javascript">
       document.write("<source src='" + videoUrl + "' type='video/mp4' />");   
      </script>
     
    </video>

    </div>
</body>
</html>